package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysCommentAgreeMapper;
import com.ruoyi.system.domain.SysCommentAgree;
import com.ruoyi.system.service.ISysCommentAgreeService;
import com.ruoyi.common.core.text.Convert;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-12
 */
@Service
public class SysCommentAgreeServiceImpl implements ISysCommentAgreeService 
{
    @Autowired
    private SysCommentAgreeMapper sysCommentAgreeMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param cagreeid 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public SysCommentAgree selectSysCommentAgreeByCagreeid(Long cagreeid)
    {
        return sysCommentAgreeMapper.selectSysCommentAgreeByCagreeid(cagreeid);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param sysCommentAgree 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<SysCommentAgree> selectSysCommentAgreeList(SysCommentAgree sysCommentAgree)
    {
        return sysCommentAgreeMapper.selectSysCommentAgreeList(sysCommentAgree);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param sysCommentAgree 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertSysCommentAgree(SysCommentAgree sysCommentAgree)
    {
        return sysCommentAgreeMapper.insertSysCommentAgree(sysCommentAgree);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param sysCommentAgree 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateSysCommentAgree(SysCommentAgree sysCommentAgree)
    {
        return sysCommentAgreeMapper.updateSysCommentAgree(sysCommentAgree);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param cagreeids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteSysCommentAgreeByCagreeids(String cagreeids)
    {
        return sysCommentAgreeMapper.deleteSysCommentAgreeByCagreeids(Convert.toStrArray(cagreeids));
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param cagreeid 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteSysCommentAgreeByCagreeid(Long cagreeid)
    {
        return sysCommentAgreeMapper.deleteSysCommentAgreeByCagreeid(cagreeid);
    }
}
